﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DormMS.Model.Enum;

namespace DormMS.Model
{
    /// <summary>
    /// 会员优惠券
    /// </summary>
    public class MemberCoupon
    {
        /// <summary>
        /// 
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 优惠券_Id
        /// </summary>
        public int CouponId { get; set; }
        /// <summary>
        /// 会员Id
        /// </summary>
        public int MemberId { get; set; }
        /// <summary>
        /// 来源类型
        /// </summary>
        public MemberCouponSource SourceType { get; set; }
        private DateTime addTime = DateTime.Now;
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime { get { return addTime; } set { addTime = value; } }
        /// <summary>
        /// 状态
        /// </summary>
        public MemberCouponStatus Status { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Note { get; set; }
        /// <summary>
        /// 使用时间
        /// </summary>
        public DateTime? UsedTime { get; set; }
        private bool isDeleted = false;
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDeleted { get { return isDeleted; } set { isDeleted = value; } }
    }
}
